package com.orchid.community.models.mapper;

import com.orchid.community.models.DTO.MissionDto;
import com.orchid.community.models.DTO.PeopleDTO;
import com.orchid.community.models.DTO.PeopleRequestDTO;
import com.orchid.community.models.DTO.UserParam;
import com.orchid.community.models.entity.Apply;
import com.orchid.community.models.entity.People;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PeopleMapper {
    People selectByPrimaryKey(Integer userId);

    int insert(PeopleDTO peopleDTO);

    int update(PeopleDTO peopleDTO);

    List<PeopleRequestDTO> getPeopleList(UserParam param);

    int apply(Map<String, Object> map);

    Apply getApplyInfo(Map<String, Object> map);

}
